package com.hj.dapp.business.unit.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.hj.dapp.business.unit.model.Unit;
import com.hj.dapp.common.request.PageRequest;

import java.security.Principal;
import java.util.List;

/**
 * @author 胡奥程
 * @version 1.0
 * @date 2024/1/22
 */
public interface UnitService {

    Unit get(Long id);

    IPage<Unit> page(PageRequest<Unit> request);

    void edit(Unit unit, Principal principal);

    void save(Unit unit, Principal principal);

    void delete(Long id);

    List<Unit> list();

}
